package org.example.dao.entity.user;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * (UTrolley)实体类
 *
 * @author makejava
 * @since 2023-09-13 08:57:06
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UTrolley implements Serializable {
    private static final long serialVersionUID = 985342278687334930L;
    
    private Long id;
    
    private Long userId;
    
    private Long storeId;
    /**
     * 已购买 已失效 购物车中
     */
    private String status;
    
    private Integer num;
    
    private Integer isValid = 1;

    private Date createTime = new Date();
    private Date updateTime = new Date();

    public UTrolley(Long id, Long userId, Long storeId, String status, Integer num) {
        this.id = id;
        this.userId = userId;
        this.storeId = storeId;
        this.status = status;
        this.num = num;
    }
}

